window.alert = function(s) {
	if( !confirm(s) ) window.alert = null;
}



var hasMethod = function( object, method ) {
	return (  ( object[method] != undefined ) && ( typeof( object[method] ) == 'function' ) );
} 
